package com.sakura.dao;

import com.sakura.entity.Shop;
import com.sakura.mapper.ShopMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * Created by apple on 2018/12/25.
 */
@Component
public class ShopDao {
    @Autowired
    private  ShopMapper shopMapper;

    public Shop getShop(int id){
        return shopMapper.getShop(id);
    }

    public int updateShopById(String shopName, int id){return shopMapper.updateShopById(shopName, id);}

}
